<template>
  <div>
    <el-table
      :data="list"
      style="width: 100%"
      :default-sort="{ prop: 'date', order: 'descending' }"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55"> </el-table-column>
      <el-table-column prop="Name" label="姓名" width="120">
      </el-table-column>
      <el-table-column prop="Sex" label="性别" width="100"></el-table-column>
      <el-table-column label="头像" width="100"><img src="http://120.48.115.252:9990/img/error.7cbea5ed.png" alt=""> </el-table-column>
      <el-table-column prop="Role" label="角色" width="100"> </el-table-column>
      <el-table-column prop="Realname" label="真实姓名" width="120">
      </el-table-column>
      <el-table-column prop="CreateTime" label="注册时间" width="120">
      </el-table-column>
      <el-table-column prop="Admin" label="创建人" width="120">
      </el-table-column>
      <el-table-column prop="Yn" label="是否可用" width="100">
      </el-table-column>
      <el-table-column
        prop="UpdateTime"
        label="修改时间"
        width="120"
      ></el-table-column>
      <el-table-column prop="sex" label="操作" width="100">
        <el-icon><Tools /></el-icon><span>查看</span>
      </el-table-column>
      <el-table-column label="操作" width="120"
        ><span>修改密码</span><span>编辑</span></el-table-column
      >
    </el-table>
    <div class="block">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="2"
        layout="total, sizes, prev, pager, next, jumper"
        :total="100"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>
import { Tools } from "@element-plus/icons-vue";
// import { onMounted } from "vue";
export default {
  // props: ["list"],
  setup(props, a) {
    let handleSizeChange = (val) => {
      console.log(`每页 ${val} 条`);
    };
    let handleCurrentChange = (val) => {
      console.log(`当前页: ${val}`);
    };
    let multipleSelection=ref([])
    let handleSelectionChange=(val)=>{
      multipleSelection.value=val
    }
    return {handleSizeChange,handleCurrentChange};
  },
};
</script>
<style scoped lang="scss">
img{
    width: 50px;
    height: 50px;
}
</style>
